﻿@model IEnumerable<FlowerShop.Core.Models.Torder>
@{
    ViewBag.Title = "订单审核";
}

<h2>订单审核</h2>
<table class="table table-bordered">
    <thead>
        <tr>
            <th>订单号</th>
            <th>用户名</th>
            <th>订单日期</th>
            <th>地址</th>
            <th>城市</th>
            <th>州/省</th>
            <th>邮政编码</th>
            <th>电话</th>
            <th>状态</th>
            <th>利润</th>
            <th>操作员ID</th>
            <th>付款状态</th>
            <th>配送状态</th>
            <th>分配状态</th>
            <th>备注</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var order in Model)
        {
            <tr>
                <td>@order.O_id</td>
                <td>@order.O_name</td>
                <td>@order.O_date</td>
                <td>@order.O_add</td>
                <td>@order.City</td>
                <td>@order.State</td>
                <td>@order.youbian</td>
                <td>@order.phone</td>
                <td>@order.O_zhuangtai</td>
                <td>@order.O_profit</td>
                <td>@order.W_id</td>
                <td>@order.O_qianshou</td>
                <td>@order.O_pinglun</td>
                <td>@order.O_dafen</td>
                <td>@order.O_huaduoming</td>
                <td>
                    <!-- 审核表单 -->
                    <form action="/Order/ApproveOrder" method="post">
                        <input type="hidden" name="id" value="@order.O_id" />
                        <button type="submit" class="btn btn-primary">审核订单</button>
                    </form>
                </td>
            </tr>
        }
    </tbody>
</table>
